package info.ask4research.service.impl;

import info.ask4research.dao.IQuestionDAO;
import info.ask4research.dao.core.AbstractDao;
import info.ask4research.model.addons.Question;
import info.ask4research.service.IQuestionService;
import info.ask4research.service.core.impl.AbstractServiceImpl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service(value="questionService")
@Transactional
public class QuestionService extends AbstractServiceImpl<Question> implements IQuestionService{
	
	@Resource(name = "questionDAO")
	private IQuestionDAO dao;

	@Override
	public AbstractDao<Question> getDao() {
		return dao;
	}

	@Override
	public void setDao(AbstractDao<Question> dao) {
		this.dao = (IQuestionDAO) dao;
	}

}
